package com.li.arithmetic;

public class SXHNumber {
	public static void main(String[] args) {
		getSXHNumber(999);
	}
	
	public static void getSXHNumber(int number){
		for(int i=100;i<number;i++){
			if(isSXHNumber(i)){
				System.out.println(i);
			}
		}
	}
	
	public static boolean isSXHNumber(int number){
		int a=number/100;
		int b=number%100/10;
		int c=number%10;
		if(number==(Math.pow(a, 3)+Math.pow(b, 3)+Math.pow(c, 3)))
			return true;
		else
			return false;
	}
}
